package com.leesche.netdoll.communication.protocol;

import com.leesche.netdoll.communication.event.MessageEvent;

public class SimpleMessage implements MessageEvent {

	private int hdr1 = 0x7e;
	private int hdr2 = 0x7e;
	private int length;
	private int dsc;
	private int hsc;
	private int dest;
	private int src;
	private int type;
	private int code;
	private int seq;
	private String deviceId;
	private String gameId;

	public int getHdr1() {
		return hdr1;
	}

	public void setHdr1(int hdr1) {
		this.hdr1 = hdr1;
	}

	public int getHdr2() {
		return hdr2;
	}

	public void setHdr2(int hdr2) {
		this.hdr2 = hdr2;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getDsc() {
		return dsc;
	}

	public void setDsc(int dsc) {
		this.dsc = dsc;
	}

	public int getHsc() {
		return hsc;
	}

	public void setHsc(int hsc) {
		this.hsc = hsc;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getGameId() {
		return gameId;
	}

	public void setGameId(String gameId) {
		this.gameId = gameId;
	}

	@Override
	public String deviceId() {
		return deviceId;
	}

	@Override
	public String gameId() {
		return gameId;
	}

	public int getDest() {
		return dest;
	}

	public void setDest(int dest) {
		this.dest = dest;
	}

	public int getSrc() {
		return src;
	}

	public void setSrc(int src) {
		this.src = src;
	}
}
